package com.yidu.ruifeng_logistics.controller;

import com.yidu.ruifeng_logistics.entity.LogisticsIncome;
import com.yidu.ruifeng_logistics.service.LogisticsIncomeService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 收入表(LogisticsIncome)表控制层
 *
 * @author makejava
 * @since 2021-03-09 14:24:39
 */
@RestController
@RequestMapping("logisticsIncome")
public class LogisticsIncomeController {
    /**
     * 服务对象
     */
    @Resource
    private LogisticsIncomeService logisticsIncomeService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public LogisticsIncome selectOne(Integer id) {
        return this.logisticsIncomeService.queryById(id);
    }

}
